
// 引入elementUI
import elementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/zh-CN'
import 'element-ui/lib/theme-chalk/index.css'

// 引入moment时间处理
import moment from 'moment'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import request from './utils/request'

import './assets/js/sorttable.js'

Vue.use(elementUI, { locale })

Vue.prototype.$moment = moment// 赋值使用

moment.locale('zh-cn')// 需要汉化

router.beforeEach((to, from, next) => {
  request.clearRequestList()
  next()
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
